<?php /* Smarty version 2.6.16, created on 2013-09-11 14:22:00
         compiled from ../templates/admin/admin_header2.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'date_format', '../templates/admin/admin_header2.tpl', 37, false),)), $this); ?>
<?php echo '
<script type="text/javascript">
	var currenttime = \'';  echo $this->_tpl_vars['currTime'];  echo '\' 
	var montharray=new Array("January","February","March","April","May","June","July","August","September","October","November","December")	
	
	function padlength(what){
		var output=(what.toString().length==1)? "0"+what : what
		return output
	}	
	
	function displaytime(){
		var currentTime = new Date();
		var machinetime = padlength(currentTime.getHours())+":"+padlength(currentTime.getMinutes())+":"+padlength(currentTime.getSeconds())
		document.getElementById("localtime").innerHTML=machinetime
	} 
	window.onload=function(){
		setInterval("displaytime()", 500)
	}
</script>
'; ?>

</head>
<body>
<div id="outerwrapper">
  <div id="wrapper">
    <div class="header">
      <div class="logo"><a href="<?php echo $this->_tpl_vars['siteroot']; ?>
/admin/home.php">
      <?php if ($this->_tpl_vars['imageDetails'] != ''): ?>
      	<img src="<?php echo $this->_tpl_vars['siteroot']; ?>
/includes/image.php?width=280&amp;height=42&amp;image=<?php echo $this->_tpl_vars['siteroot']; ?>
/uploads/logo/<?php echo $this->_tpl_vars['imageDetails']; ?>
"/>
      <?php else: ?>
      	 <img src="<?php echo $this->_tpl_vars['siteroot']; ?>
/templates/default/images/logo.png" />
      <?php endif; ?>
      </a>
      </div>
      <div class="he_right">
        <div class="bt_logout"><a href="<?php echo $this->_tpl_vars['siteroot']; ?>
/admin/logout.php"><img src="<?php echo $this->_tpl_vars['siteroot']; ?>
/templates/admin/img/bt_logout.png" width="88" height="25" /></a></div>
        <div class="date">
        <span><?php echo ((is_array($_tmp=time())) ? $this->_run_mod_handler('date_format', true, $_tmp, "%B %e, %Y") : smarty_modifier_date_format($_tmp, "%B %e, %Y")); ?>
</span>
       	Local Time:<span id="localtime"></span>
        </div>
      </div>
      <div class="clear"></div>
      <div class="home_box">
        <div class="toolbox_dropdown_wrap">
          <div id="ddtopmenubar"  class="toolbox_dropdown mattblackmenu">
            <ul>
              <li><a href="#url" rel="ddsubmenu1">Toolbox</a></li>
            </ul>
          </div>
          <script type="text/javascript">
ddlevelsmenu.setup("ddtopmenubar", "topbar") //ddlevelsmenu.setup("mainmenuid", "topbar|sidebar")
</script>
        </div>
        <div class="top_navbox">
          <div class="home_icon"><a href="<?php echo $this->_tpl_vars['siteroot']; ?>
/admin/home.php">&nbsp;</a></div>
          <div class="user_welcometext">
          <span>Welcome <?php echo $_SESSION['admin_firstname']; ?>
</span> You are logged in as <?php if ($_SESSION['admin_type'] == '1'): ?>Admin<?php else: ?>Sub-Admin<?php endif; ?>
          	
          </div>
          <div class="clear"></div>
        </div>
      </div>
      <ul id="ddsubmenu1" class="ddsubmenustyle">
      <li><a href="<?php echo $this->_tpl_vars['siteroot']; ?>
/admin/home.php?q=dashboard" class="active">Dashboard</a></li>
        <li><a href="<?php echo $this->_tpl_vars['siteroot']; ?>
/admin/home.php?q=changeusername">Change Username</a></li>
        <li><a href="<?php echo $this->_tpl_vars['siteroot']; ?>
/admin/home.php?q=changepassword">Change Password</a></li>
        <li><a href="<?php echo $this->_tpl_vars['siteroot']; ?>
/admin/home.php?q=changeemail">Change Email Address</a></li>
        <li><a href="<?php echo $this->_tpl_vars['siteroot']; ?>
/admin/home.php?q=editprofile">Edit Profile</a></li>
        <li><a href="<?php echo $this->_tpl_vars['siteroot']; ?>
/admin/home.php?q=helptext">Manage Help Text</a></li>
        
        <!-- modules settings will available for techmodi admin user-->
        <?php if ($_SESSION['admin_id'] == '2'): ?>
        <li><a href="<?php echo $this->_tpl_vars['siteroot']; ?>
/admin/home.php?q=defaultsettings">Default Settings</a></li>
        <li><a href="<?php echo $this->_tpl_vars['siteroot']; ?>
/admin/home.php?q=settings">Modules Settings</a></li>
        <?php endif; ?>
      </ul>
    </div>